<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>登陆页面</title>
    <link rel="stylesheet" href="./css/login.css">
</head>
<body>
    <div class="login_yxj" style="height: 300px;">
        <div class="login_info">
            <div class="title">登陆</div>
            <div class="box">
                <div class="name"><input type="text" class="username" value="123456789" placeholder="请输入账号/邮箱"></div>
                <div class="password"><input type="password"  class="password2" value="123456789" placeholder="输入密码"></div>
            </div>
           <!--  <div class="password_box clearfix">
                <span class="rememberPassword active"><i></i>记住密码</span>
                <span class="forgotPassword">忘记密码</span>
            </div>-->
           <div class="footer_btn">
                <button class="fbui-btn fbui-btn-blue login_btn">登陆</button>
                <!--<div class="fbui-btn reg_btn">
                    <a href="#">注册</a>
                </div>-->
            </div>
        </div>
    </div>
    <script src="layui/layui.js" charset="utf-8"></script>
    <script>
    	var layer;
			//JavaScript代码区域
			 layui.use(['layer'], function(){//这里相当于js的页面初始化代码
			  var $ = layui.jquery,layer=layui.layer
			 });
    </script>
    <script type="text/javascript" src="js/jquery-1.10.2.js" ></script>
     <script type="text/javascript" src="js/ajax.js" ></script>
    <script>
    	$(".login_btn").click(function(e){
    		wxRequest("/sysUser/loginSubmit",
    		{
    			username:$(".username").val(),password:$(".password2").val()
    		},
    		function(e){
    			if(e.code =="success"){
//  				sessionStorage.setItem("userkey",e.userkey);
    				localStorage.setItem("userkey",e.userkey);
					location.href = "index.html";
				}
    		});
    	});
    </script>
</body>
</html>